Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panzer: fix clang warnings #4058

Merged

Conversation

rppawlo
Copy link
Contributor

@rppawlo rppawlo commented Dec 14, 2018

fixing clang warnings requested by empire

@rppawlo rppawlo added pkg: Panzer AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed labels Dec 14, 2018
@rppawlo rppawlo self-assigned this Dec 14, 2018
@rppawlo rppawlo requested a review from a team as a code owner December 14, 2018 20:45
@bartlettroscoe bartlettroscoe added the stage: in progress Work on the issue has started label Dec 14, 2018
Copy link
Member

@bartlettroscoe bartlettroscoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match 'struct' forward declaration and 'struct' definition? Need 'override' for some reason? Okay!

@@ -46,7 +46,7 @@
namespace panzer
{
template <typename LO, typename GO>
class LocalMeshInfo;
struct LocalMeshInfo;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the actually type a 'struct' and not a 'class'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes - clang picked up on the fact that the object was a "struct" but some files had forward declarations using "class". I just cleaned up all the forward declares.

Copy link
Contributor

@bathmatt bathmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cortado > grep warning out | sort | uniq
1 warning generated.
3 warnings generated.
../EMPIRE-PIC/src/StepperOpSpObserver.hpp:70:16: warning: 'empire::StepperOpSpObserver<double>::observeBeforeStepper' hides overloaded virtual function [-Woverloaded-virtual]
../EMPIRE-PIC/src/StepperOpSpObserver.hpp:75:16: warning: 'empire::StepperOpSpObserver<double>::observeAfterStepper' hides overloaded virtual function [-Woverloaded-virtual]
/projects/empire/install-for-panzer/CLANG-3.9.0-RELEASE-SERIAL-STATIC/include/stk_io/FieldAndName.hpp:119:18: warning: private field 'm_location' is not used [-Wunused-private-field]
../src/emStepperOpSpObserver.hpp:70:16: warning: 'empire::em::StepperOpSpObserver<double>::observeBeforeStepper' hides overloaded virtual function [-Woverloaded-virtual]
../src/emStepperOpSpObserver.hpp:75:16: warning: 'empire::em::StepperOpSpObserver<double>::observeAfterStepper' hides overloaded virtual function [-Woverloaded-virtual]
cortado > 

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request.

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: Trilinos_pullrequest_intel_17.0.1

  • Build Num: 1899
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.9.3

  • Build Num: 2462
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
COMPILER_MODULE sems-gcc/4.9.3
JENKINS_BUILD_TYPE Release
JENKINS_COMM_TYPE MPI
JENKINS_DO_COMPLEX OFF
JENKINS_JOB_TYPE Experimental
MPI_MODULE sems-openmpi/1.8.7
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.8.4

  • Build Num: 2112
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
COMPILER_MODULE sems-gcc/4.8.4
JENKINS_BUILD_TYPE Release
JENKINS_COMM_TYPE MPI
JENKINS_DO_COMPLEX OFF
JENKINS_JOB_TYPE Experimental
MPI_MODULE sems-openmpi/1.8.7
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.9.3_SERIAL

  • Build Num: 414
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Using Repos:

Repo: TRILINOS (rppawlo/Trilinos)
  • Branch: panzer-fix-clang-warnings
  • SHA: a396f45
  • Mode: TEST_REPO

Pull Request Author: rppawlo

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED

Pull Request Auto Testing has PASSED (click to expand)

Build Information

Test Name: Trilinos_pullrequest_intel_17.0.1

  • Build Num: 1899
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.9.3

  • Build Num: 2462
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
COMPILER_MODULE sems-gcc/4.9.3
JENKINS_BUILD_TYPE Release
JENKINS_COMM_TYPE MPI
JENKINS_DO_COMPLEX OFF
JENKINS_JOB_TYPE Experimental
MPI_MODULE sems-openmpi/1.8.7
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.8.4

  • Build Num: 2112
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
COMPILER_MODULE sems-gcc/4.8.4
JENKINS_BUILD_TYPE Release
JENKINS_COMM_TYPE MPI
JENKINS_DO_COMPLEX OFF
JENKINS_JOB_TYPE Experimental
MPI_MODULE sems-openmpi/1.8.7
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7

Build Information

Test Name: Trilinos_pullrequest_gcc_4.9.3_SERIAL

  • Build Num: 414
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PULLREQUESTNUM 4058
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH panzer-fix-clang-warnings
TRILINOS_SOURCE_REPO https://github.com/rppawlo/Trilinos
TRILINOS_SOURCE_SHA a396f45
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA b6f69c7


CDash Test Results for PR# 4058.

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ bartlettroscoe bathmatt ]!

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Pull Request will be Automerged

@trilinos-autotester trilinos-autotester merged commit 833114f into trilinos:develop Dec 14, 2018
@trilinos-autotester
Copy link
Contributor

Merge on Pull Request# 4058: IS A SUCCESS - Pull Request successfully merged

@trilinos-autotester trilinos-autotester removed the AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed label Dec 14, 2018
@bartlettroscoe bartlettroscoe removed the stage: in progress Work on the issue has started label Dec 14, 2018
@rppawlo rppawlo deleted the panzer-fix-clang-warnings branch December 21, 2018 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants